home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000824-20010305
/
000251_news@columbia.edu _Tue Feb 6 10:15:12 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2001-03-05
|
3KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id KAA12333
for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 6 Feb 2001 10:15:11 -0500 (EST)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA04831
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 6 Feb 2001 10:15:10 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id JAA10210
for kermit.misc@watsun.cc.columbia.edu; Tue, 6 Feb 2001 09:48:37 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: kermit not closing properly?
Date: 6 Feb 2001 14:48:35 GMT
Organization: Columbia University
Message-ID: <95p2s3$9v0$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <904061545bdorengneiss@207.126.101.100>,
Bob <gneiss@mailroom.com> wrote:
: Using the lastest release on both VMS and Linux...
:
Please be specific when you say "latest".
: ... the script below logs in to
: Linux from VMS, transfers a file, encrypts it, then gets a file back. All
: appears normal up to the last line, "out exit\13", at which point Kermit
: appears to try to read _every_ line of the command file (according to my
: screen display) instead of the "exit" command...eventually exit is
: recognized and kermit seems to quit normally. Up to now I had a session.log
: to read, but now that is empty at job completion.
:
I don't understand what you mean by "read _every_ line of the command file".
Isn't that what you want it to do? I don't see any conditional stopping or
branching in the command file, so Kermit normally would read and execute
every line of it.
: Thanks for any help, Bob
:
: log session
:
I'll have to take your word that Kermit has already created a session,
but you didn't show that part. But what if the connection failed?
: set host porky
: in 5 Password:
: out \13
: in 5 Login:
: out aagaard\13
: in 5 Password:
: out <password>\13
: in 5 [aagaard@porky aagaard]$
: out cd test\13
: in 3 [aagaard@porky test]$
: out rm *\13
: in 3 [aagaard@porky test]$
:
Hint: Check the INPUT commands for success and failure. If an INPUT
fails, you don't want the script to continue as if it had succeeded, right?
Especially when "rm" commands are involved?
: send /binary nopstoporky.pgp
:
You should test the SEND for success and failure too. What if the file was
not sent successfully?
: in 30 [aagaard@porky test]$
: out pgp -z "secret passphrase" nopstoporky.pgp\13
: ;
: in 30 [aagaard@porky test]$
: set protocol kermit {kermit -O} #start kermit server for "get" only
: get /text nopstoporky
: out exit\13
Try the hints above, and also read the tutorial here:
http://www.columbia.edu/kermit/ckscripts.html#tut
and maybe your script will stop misbehaving.
- Frank